package com.ruoyi.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.web.domain.Upplier;
import com.ruoyi.web.mapper.UpplierMapper;
import com.ruoyi.web.service.IUpplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 供货单位 服务实现类
 * </p>
 */
@Service
public class IUpplierServiceImpl extends ServiceImpl<UpplierMapper, Upplier> implements IUpplierService {
    @Autowired
    private UpplierMapper upplierMapper;
    /**
     * 查询【供货单位】列表
     */
    @Override
    public List<Upplier> selectUpplierList(Upplier upplier)
    {
        return upplierMapper.selectUpplierList(upplier);
    }

    /**
     * 新增【供货单位】
     */
    @Override
    public int insertUpplier(Upplier upplier)
    {
        return upplierMapper.insertUpplier(upplier);
    }
    /**
     * 批量删除【供货单位】
     */
    @Override
    public int deleteUpplierBySupplierids(Long[] supplierids)
    {
        return upplierMapper.deleteUpplierBySupplierids(supplierids);
    }

    /**
     * 删除【供货单位】信息
     */
    @Override
    public int deleteUpplierBySupplierid(Long supplierid)
    {
        return upplierMapper.deleteUpplierBySupplierid(supplierid);
    }
}
